package com.label.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.label.Model.Do.User;
import com.label.Model.Query.UserQuery;

import java.util.List;

public interface UserService extends IService<User> {

    List<User> getAll();

    List<User> getById(UserQuery userQuery);

    User getOneUserByAccount(UserQuery userQuery);

    List<User> getAllUserByAccount(UserQuery userQuery);

    List<User> getAllUserByRoles(UserQuery userQuery);

    Boolean addUser(UserQuery userQuery) throws Exception;

    Boolean deleteUserById(UserQuery userQuery);

    Boolean updateUserById(UserQuery userQuery);

    List<User> userSearch(UserQuery userQuery);

    Boolean userChangePass(UserQuery userQuery);


}
